deserializeEntry

abstract fun deserializeEntry(toml: TomlElement, errorBuilder: MutableList<String>, fieldName: String, flags: Byte): ValidationResult<T>

Deserializes the provided TomlElement. This deserialization should store the result within this deserializer (deserialize "in-place") as well as returning the result. The return has to have a fallback value.

Return

ValidationResult<T> wrapped deserialization result or a fallback value on total failure, with any applicable direct error messages stored in the result. The errorBuilder can be used for populating detail error information while providing a general alert in this error.

Author

fzzyhmstrs

Since

0.2.0

Parameters

toml

TomlElement incoming data to deserialize. This should be deserialized both into this object and returned

errorBuilder

List of error strings. Deserialization should fail softly, returning a fallback and reporting error messages to this builder instead of crashing

fieldName

String scope of the field being deserialized

flags

deserialization flags for use with built-in deserialization methods if needed.